package com.guigu.www.tangyingmeng.controller;

import com.guigu.www.pojo.PageVo;
import com.guigu.www.pojo.Quota;
import com.guigu.www.tangyingmeng.service.TymQuotaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/quota")
public class TymQuotaController {

    @Autowired
    private TymQuotaService service;

    @PostMapping("/selquotaall")
    public PageVo<Quota> selquotaall(@RequestBody Map<String,String> map){
        // System.out.println(map);
        PageVo<Quota> selquotaall = service.selquotaall(map);
        // System.out.println(selquotaall);
        return selquotaall;
    }
}
